package org.wso2.carbon.identity.entitlement.axis2handler;


import org.apache.axis2.context.MessageContext;
import org.apache.rampart.RampartMessageData;

public class UTEntitlementCallbackReader extends EntitlementCallbackReader {

    /*
     * (non-Javadoc)
     * 
     * @see
     * org.wso2.carbon.identity.entitlement.mediator.EntitlementCallbackReader#getUserName(org.
     * apache.synapse.MessageContext)
     */
    public String getUserName(MessageContext messageContext) {

//        return (String) messageContext.getProperty("username");
        return (String) messageContext.getProperty(RampartMessageData.USERNAME);
    }
}
